import request from '@/utils/request'
import defaultSettings from '@/settings'
import { praseStrEmpty } from '@/utils/ruoyi'

//实时缴款业务报文录入原交易查询
export const realTimePaymentEntryoriDetailQuery = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/paymentBusiness/realTimePaymentBusiness/RealTimePaymentEntry/oriSearch`,
}

//实时缴款业务报文录入table查询
export const realTimePaymentEntrydetailTabSearchQuery = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/paymentBusiness/realTimePaymentBusiness/RealTimePaymentEntry/detailTabSearch`,
}


// 实时缴款业务报文录入提交
export function realTimePaymentEntrySave(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/paymentBusiness/realTimePaymentBusiness/RealTimePaymentEntry/save`,
    method: 'post',
    data:data
  })
}



//实时缴款业务报文审核查询
export const realTimePaymentApproveQuery = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/paymentBusiness/realTimePaymentBusiness/RealTimePaymentApprove/search`,
}

//实时缴款业务报文审核查询明细
export function realTimePaymentApproveQueryDetail(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/paymentBusiness/realTimePaymentBusiness/RealTimePaymentApprove/detail`,
    method: 'get',
    params:{id:data.id}
  })
}

//实时缴款业务报文审核查询明细table查询
export const realTimePaymentApproveQueryDetailTable = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/paymentBusiness/realTimePaymentBusiness/RealTimePaymentApprove/detailTable`,
}


//实时缴款业务报文审核通过
export function realTimePaymentApproveQueryApprove(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/paymentBusiness/realTimePaymentBusiness/RealTimePaymentApprove/approve`,
    method: 'post',
    params:{id:data.id}
  })
}

//实时缴款业务报文审核拒绝
export function realTimePaymentApproveQueryReject(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/paymentBusiness/realTimePaymentBusiness/RealTimePaymentApprove/reject`,
    method: 'post',
    params:{id:data.id}
  })
}



//实时缴款业务报文查询
export const realTimePaymentQuery = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/paymentBusiness/realTimePaymentBusiness/RealTimePaymentQuery/search`,
}

//实时缴款业务报文查询明细
export function realTimePaymentQueryDetail(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/paymentBusiness/realTimePaymentBusiness/RealTimePaymentQuery/detail`,
    method: 'get',
    params:{id:data.id}
  })
}

//实时缴款业务报文查询明细table查询
export const realTimePaymentQuerydDetailTable = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/paymentBusiness/realTimePaymentBusiness/RealTimePaymentQuery/detailTable`,
}


//实时缴款业务报文查询应答明细查询
export function realTimePaymentQueryReplyDetail(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/paymentBusiness/realTimePaymentBusiness/RealTimePaymentQuery/replyDetail`,
    method: 'get',
    params:{id:data.id}
  })
}
